const mongoose = require('../db');
const Schema = mongoose.Schema;

const schema = new Schema({
  bannerid: { type: String },
  img: { type: String },
  alt: { type: String },
  href: { type: String }
})

// 生成一个集合 集合名称为 banners
module.exports = mongoose.model('Banner', schema);